<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/3/26
 * Time: 15:26
 */

namespace app\supplier\controller;

use app\company\validate\LoginValidate;
use app\service\traits\LoginTrait;
use app\supplier\model\SupplierUser;

class Login extends Base
{

    use LoginTrait;

    private int          $isCheckCode      = 1;//登录时是否需要验证码 0 否,1 是
    protected bool       $isReturnAuth     = false;//登录成功后是否返回权限信息
    protected bool       $isReturnCompany  = false;//登录成功后是否返回公司信息
    protected bool       $isReturnSupplier = true;//登录成功后是否返回经销商信息
    private SupplierUser $model;


    public function initialize()
    {
        parent::initialize();
        $this->model         = new SupplierUser();
        $this->validateClass = LoginValidate::class;
    }

}